import request from "@/utils/request";
//post
export function postAction(url, parameter) {
  return request({
    url: url,
    method: "post",
    data: parameter,
  });
  // return request.post(url,parameter)
}

//get
export function getAction(url, parameter) {
  return request({
    url: url,
    method: "get",
    params: parameter,
  });
  // return request.get(url,{parameter})
}

//get
export function deleteAction(url, parameter) {
  return request({
    url: url,
    method: "delete",
    params: parameter,
  });
  // return request.delete(url,{parameter})
}
